package com.rybbaby.tss.front.tssStatistics.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * //@description  顾问业绩统计
 * 
 * //@author 雷春琼
 * 
 * //@createDate 2017-08-10 上午12:25:24
 */
//@Entity
//@Table(name = "view_other_statistics")
//@DynamicUpdate(true)
//@DynamicInsert(true)
public class ViewOtherStatistics implements Serializable {


	private static final long serialVersionUID = -816389986119396718L;
	/** 主键 顾问id **/
	private String id;
	/** 顾问姓名 **/
	private String realName;
	/** 缴费次数 **/
	private Long numPayments;
	/** 其他业绩 **/;
	private Double sumAmount;
	/** 退费次数 **/
	private Long numRefunds;
	/** 退费金额 **/;
	private Double sumAmout;
	/** 业绩合计 **/;
	private Double sumPerformance;
	/** 缴费最大时间 **/
	private Timestamp paymentCreateTime;
	/** 退费最大时间 **/
	private Timestamp refundUpdateTime;




	/**
	 * 方法: 取得主键
	 *
	 * //@return java.lang.String 主键
	 */
	//@Id
	//@GeneratedValue(generator = "view_other_statisticsIDGenerator" , strategy = GenerationType.AUTO)
	//@GenericGenerator(name = "view_other_statisticsIDGenerator" , strategy = "uuid")
	//@Column(name = "id", nullable= false, length = 32)
	public String getId() {
		return this.id;
	}
	
	/**
	 * 方法: 设置主键
	 *
	 * //@param id 主键
	 */
	public void setId(String id) {
		this.id = id;
	}
	

	//@Column(name = "realName", nullable= true, length = 12)
	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	//@Column(name = "numPayments", nullable= true, length = 32)
	public Long getNumPayments() {
		return numPayments;
	}

	public void setNumPayments(Long numPayments) {
		this.numPayments = numPayments;
	}

	//@Column(name = "sumAmount", nullable= true, length = 32)
	public Double getSumAmount() {
		return sumAmount;
	}

	public void setSumAmount(Double sumAmount) {
		this.sumAmount = sumAmount;
	}

	//@Column(name = "numRefunds", nullable= true, length = 32)
	public Long getNumRefunds() {
		return numRefunds;
	}

	public void setNumRefunds(Long numRefunds) {
		this.numRefunds = numRefunds;
	}

	//@Column(name = "sumAmout", nullable= true, length = 32)
	public Double getSumAmout() {
		return sumAmout;
	}

	public void setSumAmout(Double sumAmout) {
		this.sumAmout = sumAmout;
	}

	//@Transient
	public Double getSumPerformance() {
		return sumPerformance;
	}

	public void setSumPerformance(Double sumPerformance) {
		this.sumPerformance = sumPerformance;
	}

	//@Column(name = "paymentCreateTime", nullable= true, length = 32)
	public Timestamp getPaymentCreateTime() {
		return paymentCreateTime;
	}

	public void setPaymentCreateTime(Timestamp paymentCreateTime) {
		this.paymentCreateTime = paymentCreateTime;
	}

	//@Column(name = "refundUpdateTime", nullable= true, length = 32)
	public Timestamp getRefundUpdateTime() {
		return refundUpdateTime;
	}

	public void setRefundUpdateTime(Timestamp refundUpdateTime) {
		this.refundUpdateTime = refundUpdateTime;
	}
}